import * as types from '../constant/action-types'

const initInfo =
  [{
    id: 1,
    username: 'admin',
    email: '1234',
    roles: ['8', '9']
  }]

export default (state = initInfo, action) => {
  switch (action.type) {
    case types.SEARCH_ROLE_USERS:
      return action.users
    default:
      return state
  }
}
